/**
 * @Date 2023-02-21 14:24:10
 * @Remark
 */

// API -------------------------------------------------------------

export const API_SHOP_PAGE: Api = {
  title: "店铺管理分页",
  path: "shop/page",
  method: "POST",
  remark: "店铺权限接口",
};

// req
export interface ReqShopPage extends ReqPage {
  name?: string;
}

// API -------------------------------------------------------------

export const API_SHOP_NO_PAGE: Api = {
  title: "店铺列表不分页",
  path: "shop/list",
  method: "POST",
  remark: "店铺",
};

// API -------------------------------------------------------------

export const API_SHOP_ADD: Api = {
  title: "新增店铺管理",
  path: "shop/add",
  method: "POST",
  remark: "店铺权限接口",
};

// req
export interface ReqShopAddPage {
  name?: string;
  mobile?: string;
  locationAddress?: string;
  specificAddress?: string;
  latitude?: number;
  longitude?: number;
  id?: string;
  dataScope?: Array<string>;
}

// API -------------------------------------------------------------

export const API_SHOP_EDIT: Api = {
  title: "修改店铺管理",
  path: "shop/edit",
  method: "POST",
  remark: "店铺权限接口",
};

// API -------------------------------------------------------------

export const API_SHOP_DELETE: Api = {
  title: "删除店铺管理",
  path: "shop/delete",
  method: "POST",
  remark: "店铺权限接口",
};

// API -------------------------------------------------------------

export const API_SHOP_CHANGESTATUS: Api = {
  title: "修改店铺状态",
  path: "shop/changeStatus",
  method: "POST",
  remark: "店铺权限接口",
};

// req
export interface ReqShopChangeStatus {
  id: string;
  enableStatus: number;
}
